import type { App } from "vue";
import SvgIcon from "../package/components/SvgIcon.vue";

//console.log(ElementPlusIconsVue)

const allGloablComponet: any = { SvgIcon }; //相当与{SvgIcon:SvgIcon, Pag:Pag},键值一致可以简写

//对外暴露插件对象
export default {
  //务必叫做install方法
  install(app: App) {
    Object.keys(allGloablComponet).forEach((key: string) => {
      //注册为全局组件
      app.component(key, allGloablComponet[key]);
    });
  },
};
